package org.itboys.rpc.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.itboys.rpc.constant.RpcConstant;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 发送验证码相关的表
 * @author weisky
 *
 */
@Entity(value = "ValidateCode", noClassnameStored = true)
public class ValidateCode extends BaseLongIdEntity{

	private static final long serialVersionUID = -7907986813176545094L;
	
	@Indexed
	private String mobile;
	private String code;
	@Indexed
	private int type = RpcConstant.VALIDATE_CODE_REG;// 验证类型  1：注册   2：忘记密码   3：修改密码
	
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
}
